import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import {createStore, applyMiddleware} from 'redux'
import logger from "./middleWare/logger"
import thunk from "./middleWare/thunk"
import Counter from "./component/Count"
import reducer from './redux/reducers'
import {Provider} from "react-redux"
 


const store = createStore(reducer, applyMiddleware(logger, thunk))

function ActionFun (dispatch) {
  setTimeout(() => {
    dispatch({type:'increment', payload: 5})
  }, 2000)

}


ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);
